projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e96857
)
libfdt: Add fdt_getprop_namelen_w
author
Maxime Ripard
<
[email protected]
>
Tue, 5 Jul 2016 08:26:42 +0000
(10:26 +0200)
committer
Tom Rini
<
[email protected]
>
Sat, 20 Aug 2016 15:35:03 +0000
(11:35 -0400)
Add a function to retrieve a writeable property only by the first
characters of its name.
Signed-off-by: Maxime Ripard <
[email protected]
>
include/libfdt.h
patch
|
blob
|
history
diff --git
a/include/libfdt.h
b/include/libfdt.h
index f13b01f08f71e23808199b9cde80011e547dbd8f..a55d2d0d8c7b4a3a60bed17a0bf54c1cd9f751f7 100644
(file)
--- a/
include/libfdt.h
+++ b/
include/libfdt.h
@@
-619,6
+619,13
@@
const void *fdt_getprop_by_offset(const void *fdt, int offset,
*/
const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
const char *name, int namelen, int *lenp);
+static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset,
+ const char *name, int namelen,
+ int *lenp)
+{
+ return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name,
+ namelen, lenp);
+}
/**
* fdt_getprop - retrieve the value of a given property